package main

import (
	"flag"
	"fmt"
	"./golf"
)

var flag_conf_fname string

func init() {
	flag.StringVar( &flag_conf_fname, "c", "config_file.conf", "Name of the config file")
	//flag.IntVar( &conf_fname, "config_file", "config_file.conf", "Name of the config file")
}//init()

func main() {
	flag.Parse()

	flag_fn := flag.Lookup( "c" )

	fmt.Printf( "config_file, flag name:%v, flag value:%v\n", flag_fn.Name, flag_fn.Value )


	//cwd, err := os.Getwd()
	//fmt.Printf("cwd:%v, err:%v\n", cwd, err)
	golf := golf.NewGolf( flag_fn.Value.String() )
	golf.Parse();

	golf.Close()
}//main()
